public class Student {
    private String name;
    private String sid;
    private String banji;
    private String gender;
    private String age;
    private String personality;

    public Student(String name,String sid,String banji,String gender,String age,String personality)
    {
        this.name = name;
        this.sid = sid;
        this.banji = banji;
        this.gender = gender;
        this.age = age;
        this.personality = personality;
    }
    public void getSummary() {
        System.out.println(name + "的学号是" + sid + "，班级是" + banji + "，性别是" + gender + "，年龄是" + age + "，性格是" + personality + "。");
    }
    public static void main(String[] args){
        Student stu1 = new Student("张三","001","一班","男","19","内向");
        Student stu2 = new Student("李四","002","二班","男","20","外向");
        Student stu3 = new Student("王五","003","三班","女","19","内向");
        stu1.getSummary();
        stu2.getSummary();
        stu3.getSummary();
    }
}
